using System;
using System.Collections.Generic;
using System.Text;
using System.Net;
/// <summary>
/// name must be "PlayerManager"
/// </summary>
public interface IPlayerManager
{
    bool Init(string connectString, string ip, int port);
    int AddDomain(int backgroundId, string name);
    bool DeleteDomain(int regionId);
    bool OnMessage(int from, int to, int type, string content, string tick);
    bool AddPlayer(int backgroundId, int regionId, int playerId, int count);
    bool DeletePlayer(int backgroundId, int regionId, int playerId, int count);
    bool Close();
}





